package com.ruoyi.storage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 库存详情对象 item_detail
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
public class ItemDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单件物品id */
    private String itemId;

    /** 物品批次id */
    @Excel(name = "物品批次id")
    private String batchId;

    /** 仓库id */
    private Integer warehouseId;

    /** 库区id */
    @Excel(name = "库区id")
    private Integer areaId;

    /** 库位id */
    @Excel(name = "库位id")
    private Integer location;

    /** 总重量 */
    @Excel(name = "总重量")
    private Long weight;

    /** 重量单位 */
    @Excel(name = "重量单位")
    private String weightUnit;

    /** 总体积 */
    @Excel(name = "总体积")
    private BigDecimal volume;

    /** 体积单位 */
    @Excel(name = "体积单位")
    private String volumeUnit;

    public void setItemId(String itemId) 
    {
        this.itemId = itemId;
    }

    public String getItemId() 
    {
        return itemId;
    }
    public void setBatchId(String batchId) 
    {
        this.batchId = batchId;
    }

    public String getBatchId() 
    {
        return batchId;
    }
    public void setWarehouseId(Integer warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Integer getWarehouseId() 
    {
        return warehouseId;
    }
    public void setAreaId(Integer areaId) 
    {
        this.areaId = areaId;
    }

    public Integer getAreaId() 
    {
        return areaId;
    }
    public void setLocation(Integer location) 
    {
        this.location = location;
    }

    public Integer getLocation() 
    {
        return location;
    }

    public void setWeight(Long weight)
    {
        this.weight = weight;
    }

    public Long getWeight()
    {
        return weight;
    }

    public void setWeightUnit(String weightUnit)
    {
        this.weightUnit = weightUnit;
    }

    public String getWeightUnit()
    {
        return weightUnit;
    }

    public void setVolume(BigDecimal volume)
    {
        this.volume = volume;
    }

    public BigDecimal getVolume()
    {
        return volume;
    }

    public void setVolumeUnit(String volumeUnit)
    {
        this.volumeUnit = volumeUnit;
    }

    public String getVolumeUnit()
    {
        return volumeUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("batchId", getBatchId())
            .append("warehouseId", getWarehouseId())
            .append("areaId", getAreaId())
            .append("location", getLocation())
            .append("weight", getWeight())
            .append("weightUnit", getWeightUnit())
            .append("volume", getVolume())
            .append("volumeUnit", getVolumeUnit())


            .toString();
    }
}
